package com.jzo2o.foundations.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.HotServeListDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 服务表 服务类
 * </p>
 *
 * @author SumJane
 * @since 2025-08-28
 */
public interface IServeService extends IService<Serve> {


    void batchAdd(List<ServeUpsertReqDTO> serveUpsertReqDTO);

    Serve myUpdateServe(Long id, BigDecimal price);

    Serve onSale(Long id);

    PageResult<ServeResDTO> myPage(ServePageQueryReqDTO dto);

    void myRemoveById(Long id);

    Serve offSale(Long id);

    Serve onHot(Long id);

    void offHot(Long id);
    /**
     * 查询区域服务信息
     * */
    Serve queryServeByIdCache(Long id);

    /**
     * 首页热门服务列表
     * */
    List<HotServeListDTO> hotServeList(Long regionId);
}
